//
//  SGGameFinishedView.h
//  EatNumber
//
//  Created by shaozg on 12/23/14.
//  Copyright (c) 2014 kuwo.cn. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GameAlgorithm.h"

@protocol SGGameFinishedViewDelegate;

@interface SGGameFinishedView : UIView

@property (nonatomic, weak) id<SGGameFinishedViewDelegate> delegate;

- (BOOL)playerIsWin;

- (void)showInParentView:(UIView *)theView progress:(GameProgress)progress animate:(BOOL)animate;

@end

@protocol SGGameFinishedViewDelegate <NSObject>

@required
- (void)goBack:(SGGameFinishedView *)gameFinishedView;
- (void)restart:(SGGameFinishedView *)gameFinishedView;

@optional
- (void)share:(SGGameFinishedView *)gameFinishedView;
@end